

import java.net.ServerSocket;
import java.net.Socket;
import java.sql.ResultSet;

public class Server {
	static DBConnection db;
	public static void main(String[] args) {
		db = DBConnection.getDB();
		Console con= new Console(db);
		con.start();
		try {
			ServerSocket serverSock = new ServerSocket(9688);
			while(true){
				Socket clientSocket = serverSock.accept();
				Thread t = new AtenderCliente(clientSocket,db);
				t.start();
				System.out.println("Usuario conectado:"+ clientSocket);	
			}
		}catch(Exception ex ){ 
			ex.printStackTrace();}
	}

}
